const resolve = require('path').resolve


export default {
  head: {
    title: '博学谷-黑马程序员线上平台',
    meta: [{            //hid相同会覆盖掉
        charset: 'utf-8'
      },
      {
        name: 'viewport',
        content: 'width=device-width, initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no'
      },
      {
        name: 'referrer',         //来源
        content: "no-referrer"     //任何情况下都不发送 Referrer 信息；
      },
      {
        name: 'format-detection',
        content: 'telephone=no'    //telephone=no就禁止了把数字转化为拨号链接
      },
      {
        name: 'apple-mobile-web-app-title',    //添加到主屏后的标题
        content: '博学谷-黑马程序员线上平台'
      },
      {
        name: 'apple-mobile-web-app-status-bar-style', //设置苹果工具栏颜色
        content: 'black'
      },
      {
        name: 'apple-mobile-web-app-capable',    //是否启用webApp全屏模式，删除苹果默认的工具和菜单栏
        content: 'yes'
      },
      {
        name: 'renderer',        //<启用360浏览器的极速模式(webkit)
        content: 'webkit'
      },
      {
        name: 'full-screen',
        content: 'no'
      },
      {
        name: 'browsermode',
        content: 'application'
      },
      {
        name: 'x5-fullscreen',
        content: 'false'
      },
      {
        name: 'x5-page-mode',
        content: 'app'
      },
      {
        name: 'screen-orientation',
        content: 'portrait'
      },
      {
        name: 'x5-orientation',
        content: 'portrait'
      },
      {
        hid: 'keywords',
        name: 'keywords',
        content: 'Java培训,Android培训,安卓培训,PHP培训,C++培训,iOS培训,网页设计培训,平面设计培训,UI设计培训,游戏开发培训,移动开发培训,网络营销培训,web前端培训'
      },
      {
        hid: 'description',
        name: 'description',
        content: '博学谷云课堂为传智播客旗下在线教育品牌，将积累10年的实体班线下课程和教学方法引到线上。课程大纲全新优化，内容有广度、有深度，顶尖讲师全程直播授课。专注整合传智优势教学资源、打造适合在线学习并能保证教学结果的优质教学产品，同时打造和运营一整套教育生态软件体系，为用户提供满足自身成长和发展要求的有效服务。'
      }
    ],
    link: [{
        rel: 'icon',
        type: 'image/x-icon',
        href: '/favicon.ico'
      },
      {
        rel: 'stylesheet',
        type: 'text/css',
        href: '//at.alicdn.com/t/font_229347_a3okqx7y3qv.css'
      }
    ],
    script: [
      // { src: '/lib/wxShare.min.js' },
      // { src: '/lib/qyWxShare.min.js' },
      // { src: '/lib/zhugeIO.js' },
      // {
      //     src: '//webchat.7moor.com/javascripts/7moorInit.js?accessId=b91bf240-868c-11e8-beff-b3a73470030e&autoShow=false&language=ZHCN',
      //     defer: true
      // },
      // { src: 'https://cdn.bootcss.com/vConsole/3.2.0/vconsole.min.js' }, //vconsole
      // { src: 'https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.1/alipayjsapi.min.js' },
      // { src: 'https://qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js' }
    ]
  },


  env: {        //运行环境
    HOST: process.env.selfHost,
    PORT: process.env.PORT,
    PATH_TYPE: process.env.PATH_TYPE
  },
  /*
   ** Customize the progress-bar color
   */
  loading: {
    color: '#fff'
  },
  /*
   ** Global CSS
   */
  css: [],
  /*
   ** Plugins to load before mounting the App
   */
  plugins: [],
  /*
   ** Nuxt.js dev-modules
   */
  buildModules: [],
  /*
   ** Nuxt.js modules
   */
  modules: [],
  /*
   ** Build configuration
   */
  build: {
    /*
     ** You can extend webpack config here
     */
    extend(config, ctx) {}
  }
}
